Add important test case
Fix nasty UTF-8 parser bug
Use brackets instead of substr