better handling of lowercase for safari