Fix #927: Use a macro to automatically depend on right artifact

Could be on the companion object, though, so that it is not pimped on `String`. And noted as internal in its javadoc.