JAVA-1020: Throw exception when DB name contains spaces