Work on multibyte character support, not finished.
Double-strdup fix.