Added fromUtf8() and fromLatin1() static methods.