add encoding to comment model