Change manual string conversion to expand_number

Reviewed by:	adrian
Add missed DPADD

Reported by:	swildner@DragonflyBSD.org