Now that we have to handle UTF-8 for i18n support, use encodeURIComponent to encode parameters to AJAX calls