fixed encoding for sidebars