made base32 encoding method more readable with a switch statement (yep, seriously), and a macro