refactored b64 to pre-select conversion method

slight performance improvement