Request_uri escaping "//" to "/"

Hi,

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

When I click on the link ‘http://xxx.com/api/https://bam.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.