consolidated character conversions to single source

removed character conversion redundancy
fine tined character conversion algorithm
future found exceptions can be added to __charreplace() function