Rewrote our local implementation of a Base64 encoder/decoder as specified