Unsupported encoding exception catch