Prevent force_encoding when it's not supported (like hashes)