Improved Utils::addSlashes that avoids double escaping