handle when there's no encoding set

Signed-off-by: Chris Granger <ibdknox@gmail.com>