Changed base64 encoding - fixed crash on big data