Fix test and restore event escaping for consistency with other dogstatsd client libs