added html encoding to parameters