Changed isascii call to isprint in hopes this will work in non-ASCII locales