Pass std::string arg as const ref
Add function for creating copy of std::string to char*

Teve-chef trick. Writing a "char* str = new char[..." et al takes to
much time.
Add test that fails if '.' is not removed during quoting

The purpose is to demo a missing test case.