Updated ConvertToString and ToByteArray extension methods.