Fixed read with utf chars
Make it work with older python versions as well