Don't downcase empty credentials
Close #478