fix rewards fileencoding