fixed encoding problem for comment attributes