Dealing with tar on old railway sleepers
It's coal-tar creosote, which is hazardous to your child's health and most likely carcinogenic.

I'd get rid of them completely and replace them with something else.  Wear gloves, yadda, yadda.