ActiveSupport::JSON::Encoding.escape implementation

@rkh could you provide a brief example of data you think `ActiveSupport::JSON doesn't encode properly? I'd like to have a go at fixing #7764...