Don't force encoding on already properly-encoded buffers

This allows frozen strings to be used as ProtocolBuffer input.