Fixes for encoding of URL elements (Use URI::escape instead of CGI::esca...

This addresses a lot of broken get_data calls I was seeing.