Fix ERB::Util::escape_json to escape javascript incompatible whitespace

Brings the `ERB::Util::escape_json` inline with the behavior in Rails 4.

More info: http://timelessrepo.com/json-isnt-a-javascript-subset
Related: https://github.com/rails/rails/pull/13073