Correctly parse tags in select2

Fixes #397