Fix ActiveSupport::SafeBuffer#gsub bug 

.. in NestedParamsEncoder
Merge pull request #381 from alagu/master

Fix ActiveSupport::SafeBuffer#gsub bug