encoding binary and numeric with prefixed string value