handled github #6

now works on 1.9.3 fixed the default encoding