Attempted to fix some unicode method related bugs and add tests to ferret them out in the future