/**
  * Checks if a string contains only characters allowable in a PrintableString.
  *
  * <p>The folliwing characters are allowed (taken from section 3.3.3 of RFC1148)
  *
  * <pre>  printablestring  = *( ps-char )
  *   ps-restricted-char = 1DIGIT /  1ALPHA / " " / "'" / "+"
  *                    / "," / "-" / "." / "/" / ":" / "=" / "?"
  *   ps-delim         = "(" / ")"
  *   ps-char          = ps-delim / ps-restricted-char</pre>
  *
  * @return true iff <code><i>s</i></code> contains only characters allowable in a PrintableString.
  */
 public static boolean isPrintableString(String s) {
   return StringUtil.hasOnlyLegalChars(s, allowedChars);
 }