I have seen a lot of bugs that boil down to character-set mismatches between APIs. Some thoughts about that.