fix encoding problem in more and wc commands.
finished wc command.