Encoding is often forgotten about when dealing with XS. We should document how it can (should?) be done.