replace redirect with correct characters