Make tags case insensitive - Fixes #508.