Normalize input hostnames in various functions

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>