add unicode test to attributes

Signed-off-by: Caleb Cushing <xenoterracide@gmail.com>
add explicit return

Signed-off-by: Caleb Cushing <xenoterracide@gmail.com>
generalize splitting extraction

Signed-off-by: Caleb Cushing <xenoterracide@gmail.com>