Fix issues with unicode filenames for posts.

Thanks again to 邓栓for reporting it. Fixes #19.
Use an OrderedDict if available, for the post metadata.