Added the emit verb. Also some preliminary fixes to the way UTF-8 is handled
during testing. More work is likely needed in this area.