Fix cursor rendering for wide characters.