Escape option value and wrap in strong quotes

- 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.