Fixes bug which leads to not correct base64 code

We do not need to use to string.