Fix content-encoding missing bug

Fix for issue 31