Add parameter to string decoder for getting error position.
Better handling of bad strings.