URLEncode object names to generate the correct signed url and improve ha...

...ndling in object names.