fixes encoding issue in post.py