used proper encoding for url params to be html5 compliant