fixed double encoding of angle brackets