Using iswspace and iswprint to allow multi-byte characters

Using commands which contains multi-byte characters fails because isprint and isspace is used. This commit uses iswprint and iswspace to allow wide characters. Before, the following commands would fail:

SET öl 1
KEYS *

This is now fixed.