replaces escape with correct character