JXURLEncoding returns empty strings on bad/empty input instead of nil