Just use some standard encoding and let the server check hashes