improved performance by extracting accented chars to top level