I went with Base64, using `javax.xml.bind.DatatypeConverter` to prevent us from using any external libraries.