1. Fixing bug 25605: XLIM JPEG Production Fails,when the Document name contain non English characters .

2. Code style.