8210285: CharsetDecoder/Encoder's constructor does not reject NaN

Reviewed-by: sherman, smarks, alanb, martin, darcy
3 files changed