Fixed bug#10522 - HTTP 500 error when uploading attachments to ticket on Windows.