Verbatim string is missed in Java, so regex way is bullshit. Used Apache Commons Lang for String escaping.