Added functions for base16, base32, base64 encoding - fixes issue#116