Use better base64 handling in ServerHandlerImp.