Added unicode support. Corresponding output with utf encoding is now necessary