Correctly resolve Freemarker-encoded DAM links