added more utf8 support
correctly render errors from console