Caught HTTP exception, need to safely escape characters