Please take time to handle exception. For instance header may be not a valid UTF-8.
We can't let exception propagate from the C callback.