Improved robustness of generating ISBN hash. Fixed #21.