Fix issue with String#tr for quote escaping