C# LanguageHandling FormatException when converting string to other types