k&r; exercise 1.10 - replacing/escaping whitespace characters