Use a string-port variant rather than regex.

This approach is harder to read, but it's faster and more importantly,
it doesn't involve compiled regex literals, which Guile's compiler
chokes on.