Fix error highlighting on Windows (slashes) and non-latin letters (more than one byte per char in utf-8)