Fix invalid character issue