RESTEASY-812: fixing the proper escaping for character $