compile with utf-8 ref