Fix encoding of autofight code

should use utf-8 encoding