Fix body class attribute errors when the user role contains space

Fix body class attribute errors when the user role contains space.
i.e., 'Site Administrator'