Rewrote illegal character check during Patch Creation

Display illegal characters in error messages