solaris 10 tr doesn't support [:upper:] and [:lower:]; work around since we only need ascii letters anyway