Fix base64 encoding bug.

At 101 urls, the base64 function does not encode properly, resulting
in collisions (see http://jsfiddle.net/Dnr82/)
Merge pull request #1 from typpo/master

Fix base64 encoding bug that causes url collisions