Suppress 2nd replace when containing `%' char in pseudo prepared query.