Fixed #29 - Move common functions to ebooklib.utils