set charset for mysql for php 5.3.6 and lower
allow posts to work without a offset