Fix bad escaping in select replacement.

My previous commit introduced a bug with the select replacement feature. (i missread comments in config file)