Fixed encoding, by adding str(...)

Also fixed name capitalization in init.py