Some escaping functions for Ruby
