Some slight cleanup

* Do file reading in C, instead of Ruby
* "Cache" matched svg_content to avoid jumping into C every time
* Trim the starting XML text faster rather than convert to array and joining