bugfixed issues when dealing with utf8 strings; added wire::replace1(); added getopt::size()