Fix crash with objects having a non-ASCII repr in context.