Fixes #45 Remove trailing slashes when permalink generation