Corrected erroneous sprintf (refs #4207)

Also:
- Removed unused variable $trbytes
Merge pull request #5 from eguaj/1.3-A4207

Corrected erroneous sprintf (closes #4207)