Added function for URL escaping with support for i18n.