Escape annotation as already done in the KernelInterface

to avoid problems with non-imported annotations.