Much faster ArrayToString
Added pre-alloc to base64_encode to speedup