Fix localization of tree ids

This was causing malformed urls on servers with >1000 trees, due to the presence of commas.