Force UTF-8 and add a missing library