You should probably fix the other functions which set content type in the same way, with a default content type of "text/html; charset=shift_jis"