Unreachable code removal
Added unit test for the to_ascii helper.
Added docstring