Fix spec encoding issue

use pack to derive propper values rather
than use string literals. Eliminates wierd encoding
issues