Converting unicode strings to bytes for representation.