Handle string exceptions in #extension