Added my own version of base64 encoding/decoding