ToSymbol: Update regexp to match more symbols

The new regexp adds support for matching symbols like:
  - `:"foo.bar"`
  - `:'foobar'`
  - `:foo.bar`
  - `:"foo\nbar"`

All of these are compatible with how Psych dumps symbols.