set charset for mysql for php 5.3.6 and lower
allow posts to work without a offset
Merge branch 'dev' into 0.9