Base64 encoding/decoding and configurable alphabets for bin/hex conversions