Allow spaces in refId

Signed-off-by: Tom Wright <tom@inflatablecookie.com>