Using the following snippets, you will be able to add post name to the body class.

Snippet source/Credit: WPProgrammer.com