Do some sanitisation on user supplied configuration settings