fix regex escaping on 1.8