fix: force exception content to be text_type

Change-Id: Icc305f57741de88b72d40c677ef81dea918db818