Fix dump spec for 1.8 mode
Don't check encoding in 1.8 mode
Fix marshalling in 1.8 mode for String