id length calculation should not include the extension

also removes useless and invalid use of join()
Merge pull request #56 from buhman/id-ext

id length calculation should not include the extension