Fix trailing slashes when loading records