More explicit encoding to bytestring