Fix encoding bug in compile_link_import_strings