fixing escaping issue that breaks on ruby 1.9.3