Fix unicode-related failures in CSV upload.

TNL-586

@adampalay