escapse all possible symbols used in regex by the solution from http://stackoverflow.com/a/6969486/1766096