Added functions for encoding (and decoding) strings without equals signs.