Fix ActiveSupport::SafeBuffer#gsub bug 

.. in NestedParamsEncoder