ASCII utility functions for Haskell