Request_uri escaping "//" to "/"

Hi,

I’ve setup nginx to host a local site xxx.com

When I click on the link ‘XXX Sex - Free Porn Videos at XXX.com’, inside
sinatra the env path_info becomes /api/https:/bam.com/ instead of
/api/https://bam.com/.

Has anyone seen things like this happening before? Is Nginx doing some
escaping here?

Cheers,
Khoan.