Fix crash when using --trace 10 or above

uint8_t is typedef'd to char, thus boost::lexical_cast treats it
as such instead of a number.
Merge pull request #346 from afh/pull/trace_level

Fix crash when using --trace 10 or above