Static string optimisation means we get a ForeignPtr with an IORef inside it, leading to a different error.