Fix #26

only the last occurrence of ) has to be escaped and not the first occurrence