Changed to work entirely in Unicode until PDF creation.