Added encoding check because the Porter functions were return ASCII text.
Updated documentation.