Use unicode() instead of str() when filtering the tags