Fixed issue with duplicated escape characters. Now breaks out of loop after incrementing operator, so escape sequence will not be added twice to rule values, after the escaped character in question.