improve error handling for _check_cname
Merge pull request #59 from Blosc/better_check_cname

improve error handling for _check_cname