First try at saving sidebar status, fix string encoding for JSON hibernation.