encodeURLParameter

fun String.encodeURLParameter(spaceToPlus: Boolean = false): String

Encode this as query parameter key.