- Fixed jpeg preview error.
- Converted -ve charcodes from 2's compliment, which was causing
  problem.
- Fixed bug to append last chunk of output block from slt, by trimming
  the end marker.