Added __version__ variable
Fixed some more charset bugs