This is currently as designed. We intentionally strip out non-letters (or numbers) from the start and end of a tag. This is mostly to try to prevent getting tags of <bug>, "bug", bug?, and so on.
Obviously it's debatable whether or not this is a good approach, but there's a valid reason for it.