null handling

Partial fix for issue #33.

To get of the extra spaces, do you think it would be safe to replace:
```
return implode("$delim ", $items);
```
with:
```
return str_replace(' ,', ',', implode("$delim ", $items));
```