Fix pencilcodeembed for non-http/s referers.