Add proper handling for some special control characters

-Fixes OS progress display