UnicodeEncodeErrors fix
Fixes #39 by calling encode("utf-8") before split()