added UTF-8 support to parser