I thought this bug was fixed earlier 

The tex comment is being decoded needlessly when it has already been decoded at the rails end before storing in the database.