printCharF which allows writing to standard out and standard error.