used urldecode instead of urlencode :(