This seems like it should be closer to the b64decode.