Fix little bug causing incorrect table names, made UTF8

Changed the way the csv extension was trimmed and more importantly made the charset UTF8 which fixed another bug