test encoding of a sample data for namecoin