exports: improve toString()

Acked-by: Paul Millar