Fix license encoding issues