fix utf-8 named task failed with --step.

This pull request solves issue #3042.
Test passes and checked on python 2.7.3.