this seems to be how you have to do the 64 encoding