also catch UnicodeDecodeError when checking locale

fixes 106