Make trailing slashes for metadata URLs explicit and remove the trailing slash from userdata calls. This is an alternative implementation to #1897.
Fix example for building metadata URL
Merge pull request #1900 from danielgtaylor/metadata

Make trailing slashes for EC2 metadata URLs explicit & remove them from userdata requests. Fixes #1900, #1897, #1856.