Sanitize some values