I think encodestring() should return a string, not bytes, and decodestring() should take either a string, or bytes containing an ASCII-encoded string. Otherwise, every place they'll ever be used has to wrap an additional unicode/encode step around their use. Bill