Encode < and > characters in paths to avoid exceptions occurring

Add tests for this new behaviour.
The branch name got truncated upon creation - it should read
"fix_invalid_character_exception_in_bulk_add"