Better validation of scanned event text (makes it work with Docker 0.10)