Fixes some issues with ANSIString.