Fix parsing of zero-length strings