fixes some bencoding saving issues