Add 'stringify' option to prettyPrint so that it returns a string
without logging anything to stdout. In cli wrap stx conversion in
try-catch - perform classification and print to stderr when serializer throws.