Make all strtok() calls use the same set of separators.
Fix drawlegend() to do something sane with odd legend strings.

Without this fix, drawlegend() would use bytes past the end of the
legend string when the legend string had fewer "/" separated fields
than the number of metric fields.