added input encoding settings