Would be a good idea pass the uri through the normalize_uri API provided by Msf::Exploit::Remote::HttpClient