improved performance of often used functions; let utf8.chars ignore broken characters
fixed parser to force line margins when set to non-zero

Thanks to @SuJiKiNen for this hint.