Wrap option value with strong quotes and escape it

- Strong quoting of option value.
- Escape single quotes in option value.
- Abstract and DRY option construction.

I think that should do the job.
Feel free to ping me about any updates to the PR.
1. Within a single-quoted string you have to leave and re-enter the single-quoting to get `'` as a literal. That's because in single quotes _nothing_ is interpreted except the closing single quote so `\` is just a literal inside and has no special meaning. [*]
2. I have of course tested my code and it works :)
3. I have of course tested your suggestion and it doesn't work :)

===
\* The Internet :D