Sanitize algname