Bug when uploading pictures with Arabic name characters?

This is due to URL encoding urlencode() please read this http://php.net/urlencode

URLs and file names may contain unsafe characters so WordPress encode them.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)