Fixed input that contains color codes

I used your tutorial on this to make a gem of my own (my first actually) and it uses this gem. But it acts strange when color codes are used so I have fixed that. My gem is called muchdoge by the way, and it re-defines puts to make all output using puts dogeified! It's more of a prank than something useful.
I'd rather leave out the version change since it's irrelevant to this pull request.  I can update it before pushing a new version out.