Escape dots and square brackets in input names - fixes #6