Add encoding headers to avoid invalid byte sequence error in imports