Restore Charset retrieval to fail early when we can't transcode.
Move replacement char selection to transcode phase for out enc.