Python interface, bug fixes
Ignore errors in wrong UTF-8 encoding