Fixed url-encode using Chris' version

Signed-off-by: Graham Chiu <compkarori@gmail.com>