pass sanitizer instance into converter function, nested errors added