fix sessions and charset