Encode html entities in case .txt files return valid markup