This certainly isn't UTF8, the serializer probably converted it to Base64.
Use Convert.FromBase64String()
to get your bytes back
Assuming that bytearray is the "TVNIfGF8M..."
string, try:
string bytearray = ...;
File.WriteAllBytes(filepath, Convert.FromBase64String(bytearray));