done issue #56
fixed possible bug with text content encoding