Fix encoding error under Windows when &encodiing != 'utf8'
Merge pull request #21 from kamichidu/pr

Can't post a message under Windows.