fixes problem with unknown UTF-8 characters in fits output