Allow empty strings for raw and default types.

Empty string is a perfectly valid raw string and the default type is
meant to prevent malicious characters, not empty strings.

Change-Id: I717bbcfe1a81b383782122870d0d727b28f40cce