Adds code to detect illegal chars in doc-blocks.

Searches for " and [ chars that we don't want in the JSON output or the stub files.