Move handling of unicode decoding to FileContainer readline

Also print warning for unicode decode failure, leaving as str in python2
and ignoring erroneous characters in python3