do not crash on non utf-8 files