add CodePage test
add validate record length

combine from_string & from_stream