work around firefox regex issue, fixes #79