Escape symbol names if they contain lower case characters or a pipe.