Try to autodetect encoding when converting to UTF-8
Drop a printf gone astray