Update base64_encode with null terminator.