fixed url encode errors