code: public final void printSymbol(CharSequence text)
          throws IOException
      {
          if (text == null)
          {
              appendAscii("null.symbol");
          }
          else if (symbolNeedsQuoting(text, true)) {
              appendAscii('\'');
              printCodePoints(text, SYMBOL_ESCAPE_CODES);
              appendAscii('\'');
          }
          else
          {
              appendAscii(text);
          }
      }
docs: Print an Ion Symbol type. This method will check if symbol needs quoting
  @param text
  @throws IOException