I need to look at this more closely but right off the bat wonder if we have potential utf-8 issues here?