fix for non utf-8 charset