then you might just do a look-up table
you create an array with 256 entries and for every ascii-sign you define an other ascii-sign that will be converted into.
you create an array with 256 entries and for every ascii-sign you define an other ascii-sign that will be converted into.