HTML/URI/shell escaping utilitiy functions for Ruby