Escape annotation as already done in the HttpKernel.

to avoid problems with non-imported annotations.