Encapsulate Base64 calls in a single component

Handles https://github.com/Jasig/cas/issues/760
Returning ```null``` is the original behaviour, I'm wondering if throwing a ```RuntimeException``` would make more sense.