Minor fixes to code

- Changed imports in util.rs
- Add method is_pubid_char for public id literals
- Removed extranous fn and enums