Replaced convertResult to use SF.Sanitize.

Fixes #233
Merge pull request #247 from awilliamson/traceResult

Replaced convertResult to use SF.Sanitize.