Switch to base64 under GPL 2+

I am not sure why there is a off-by-one difference in needlen.