The Slaves.GetSlaveInfos call works case sensitively. Most other calls (like GetSlavesSettings) are case insensitive.
Some machines get registered to the slave list with various casing, independent of what the host name returned by certain APIs is. This case sensitivity means we have to call the function twice with both upper&lower case to make sure we get a result back. This also affects r6