[fix] encoding content of empty element