Fixed issue with numerical tags and new/map dialog

Numerical tags were causing an issue when determining the list of
already used tags. Javascript function toLowerCase was failing as the
data attribute was interpreted as a number. Force toString on all tags
to ensure they are correctly handled.