fix downcase for UTF-8 characters