public static byte[] ToBytesEncoded(this string data) { try { return Encoding.UTF8.GetBytes(data); } catch(Exception e) { Log.exception(e); return null; } }