Base 64 encode the code for URLs