add encoding settings