scrypt, fix stack smash after base64_convert changes