fix encoding and paragraph block