fix cygwin extra chars issue