fix string conversion for NPEs