escape_once works on frozen strings.

That way, it works the same way as #html_escape and
ERB::Util.html_escape_once for which it acts as a replacement in Rails.

Furthermore, it is not ovious from the method name that the string
given as an argument is being changed.